<template>
    <div class="stepthree">
      <div class="success">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-wancheng"></use>
      </svg>
        <p>注册完成！</p>
      </div>
      <router-link to="/login"><button class="btn-next">去登录</button></router-link>
    </div>
</template>

<script>
    export default {
        name: "stepthree",
      mounted:function () {
        this.$emit('change',2);//向父组件的change函数传输1，表示让步骤条前进到第三步
        console.log(this);
      }
    }

</script>

<style scoped>
.success{
  font-size: 100px;
}
.success p{
  display: inline-block;
  font-size: 40px;

  position: relative;
  top: -20px;
}
.btn-next{
  margin: 0 auto;
  width: 380px;
  margin-top: 50px;
  margin-left: -5px;
  height: 46px;
  background: #2dc12d;
  color: #FFFFFF;
  outline: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
  font-family: 'Microsoft Yahei', 微软雅黑, Arial, simsun;

}
.btn-next:hover{
  opacity: 0.5;
}
</style>
